package dao

// 这是 UmsMemberLevel 的全局公开dao对象，被service层调用!
var UmsMemberLevelDao = umsMemberLevelDao{}

// 这是 ums_member_level表 的实体类
type UmsMemberLevel struct {
	Id                   int64   `json:"id" form:"id"`
	Name                 string  `json:"name" form:"name"`
	GrowthPoint          int32   `json:"growth_point" form:"growth_point"`
	DefaultStatus        int32   `json:"default_status" form:"default_status"`                 // 是否为默认等级：0-&gt;不是；1-&gt;是
	FreeFreightPoint     float64 `json:"free_freight_point" form:"free_freight_point"`         // 免运费标准
	CommentGrowthPoint   int32   `json:"comment_growth_point" form:"comment_growth_point"`     // 每次评价获取的成长值
	PrivilegeFreeFreight int32   `json:"privilege_free_freight" form:"privilege_free_freight"` // 是否有免邮特权
	PrivilegeSignIn      int32   `json:"privilege_sign_in" form:"privilege_sign_in"`           // 是否有签到特权
	PrivilegeComment     int32   `json:"privilege_comment" form:"privilege_comment"`           // 是否有评论获奖励特权
	PrivilegePromotion   int32   `json:"privilege_promotion" form:"privilege_promotion"`       // 是否有专享活动特权
	PrivilegeMemberPrice int32   `json:"privilege_member_price" form:"privilege_member_price"` // 是否有会员价格特权
	PrivilegeBirthday    int32   `json:"privilege_birthday" form:"privilege_birthday"`         // 是否有生日特权
	Note                 string  `json:"note" form:"note"`
}

// 注意:这是 UmsMemberLevel 的私有dao对象，只能在dao层内使用!
type umsMemberLevelDao struct {
	List func(defaultStatus int32) ([]UmsMemberLevel, error) `args:"default_status"`
}
